package service.imp;

import java.util.List;

import dao.DAOFactory;
import model.User;
import service.UserService;

public class UserServiceImp implements UserService{
	public List<User> findAll() throws Exception{
		return DAOFactory.getUserDAO().findAll();
	}

	public User findByEmail(String email) throws Exception{
		return DAOFactory.getUserDAO().findByEmail(email);
	}

	@Override
	public void update(User u) throws Exception {
		DAOFactory.getUserDAO().update(u);
	}
}
